import 'package:scoped_model/scoped_model.dart';

class GlobalModel extends Model {
  String _connectionStatus = 'Unknown';
  String _currentVersion = '';
  get connectionStatus => _connectionStatus;
  get currentVersion => _currentVersion;

  void changeConnectionStatus(String status) {
    _connectionStatus = status;
    notifyListeners();
  }

  void setCurrentVersion(String version) {
    _currentVersion = version;
    notifyListeners();
  }

  static GlobalModel of(context) => ScopedModel.of<GlobalModel>(context);
}
